
<h3>
	<?=$rows->fullname?>
</h3>
<h3>
<?php if(!$is_avatar_exists): ?>
<img src="<?php echo $gallery_path_url; ?>" />
<?php endif; ?></h3>
<h4>
	<?php
	if($rows->gender==0) :
	echo "Male";
	else:
	echo "Female";
	endif;
	?>
</h4>

<h4>
	<?php
	if (isset($rows->location) and $rows->location!=NULL):
	echo "Lives in ".$rows->location;
	endif;
	?>
</h4>
<h4>
	<?php
	if (isset($rows->birthdate) and $rows->birthdate!="0000-00-00"):
	echo "was born in ".$rows->birthdate;
	endif;
	?>
</h4>
<h4>
	<i> <?php
	if (isset($rows->language) and $rows->language!=NULL):
	echo "speaks ".$rows->language;
	endif;
	?>
	</i>
</h4>
<?php
if (isset($rows->interest) and $rows->interest!=NULL):
echo "<h4>Hobbies and Interests:</h4> <p>".$rows->interest."</p>";
endif;
?>



<?php
if (isset($rows->description) and $rows->description!=NULL):
echo "<h4>About Me:</h4> <p>".$rows->description."</p>";
endif;
?>



	

<?php if ($rows->userid==$this->session->userdata('userid')) :?>
<a href="<?=site_url('user_controller/to_edit_profile');?>"
	data-role="button">Edit My Profile</a>
<a href="<?=site_url('feed_controller/my_hello');?>" data-role="button">View
	My Hello</a>
	
	<a href="<?=site_url('user_controller/sign_out');?>"
	data-role="button">Sign Out!</a>
	
<a href="<?=site_url('friend_controller/view_my_friends');?>" data-role="button">View
	My Friends!</a>
&nbsp&nbsp&nbsp

<?php echo anchor('messege_controller/show_my_messege','view my messege');?>

&nbsp&nbsp&nbsp
<a href="<?=site_url('hello_controller/feeling_lucky');?>" data-role="button">I'm feeling lucky!</a>	


&nbsp&nbsp&nbsp
<a href="<?=site_url('hello_controller/my_waiting');?>" data-role="button">My Waiting List!</a>	


<h4>hello application email notification: <?=$email_option1?"allowed":"not allowed" ?></h4>
<h4>hello confirm email notification: <?=$email_option2?"allowed":"not allowed" ?></h4>
<h4>message email notification: <?=$email_option3?"allowed":"not allowed" ?></h4>
<h4>new friend email notification: <?=$email_option4?"allowed":"not allowed" ?></h4>


<?php else: ?>

<a href="<?=site_url('messege_controller/to_send_messege?receiverid='.$rows->userid);?>"
		data-role="button">Leave him a message!</a>
		<?php if(!$is_my_friend):?>
<a href="<?=site_url('friend_controller/add_as_friend?friendID='.$rows->userid);?>"
		data-role="button">Add As Friend!</a>
		

<?php endif;endif;?>
<br>
<br>
